package com.panku.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.math.BigDecimal;

/**
 * @Author: jack
 * @Description:
 * @Date Create in 9:14 2021-01-21
 **/
@NoArgsConstructor
@Data
@Entity(name = "shop_order")
public class Order {

    public Order(Integer uid, Integer pid, BigDecimal price, Integer nums) {
        this.uid = uid;
        this.pid = pid;
        this.price = price;
        this.nums = nums;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long oid;

    private Integer uid;

    private Integer pid;

    private BigDecimal price;

    private Integer nums;


}
